package builder2;

/**
 * @author: rensiyu
 * @create: 2021-09-01 14:20
 * @description:
 **/
public class Product {

    private String partA;
    private String partB;
    private String partC;

    public Product() {
    }

    public void setPartA(String partA) {
        this.partA = partA;
    }

    public void setPartB(String partB) {
        this.partB = partB;
    }

    public void setPartC(String partC) {
        this.partC = partC;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("{")
                .append("\"partA\":").append(partA)
                .append(", \"partB\":").append(partB)
                .append(", \"partC\":").append(partC)
                .append('}');
        return sb.toString();
    }
}
